<?php

require_once('../../system.php');

$path = smart_addslashes($_REQUEST['path']);
$url = str_replace($GO_CONFIG->local_path, $GO_CONFIG->local_url, $path);
?>
<html>
<head>
<script type="text/javascript" language="javascript">
function _insertHyperlink(url, name)
{
  window.opener.SetUrl(url, "", "", name);
  window.close();
}
</script>
</head>
<body onLoad="javascript:_insertHyperlink('<?php echo $url; ?>','<?php echo basename($path); ?>');">
</body>
</html>
